<%@ Page Language="C#" MasterPageFile="~/Masterpages/MasterPage.master" CodeFile="MyProfile.aspx.cs"
    Inherits="MyProfile_aspx" Title="My Profile" %>
<%@ Register TagPrefix="uc1" TagName="CategoryDropDown" Src="../Controls/CategoryDropDownList.ascx" %>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" Runat="server">
<div class="section medium register">    
    <div class="messageBox">
        <asp:Label ID="lblMessage" runat="server" Text="Manage your profile"></asp:Label><br />
        <asp:ValidationSummary ID="ValidationSummary" runat="server" CssClass="error" ValidationGroup="ChangeProfile" />
    </div>

    <fieldset>
    <legend class="mandatory"><asp:Label ID="lblLegend" runat="server" Text="Mandatory"></asp:Label></legend>
    <ol>    
    <li>
        <asp:Label ID="lblNickname" runat="server" Text="Nickname: <span>*</span>" AssociatedControlID="txtNickname"></asp:Label> <asp:TextBox ID="txtNickname" runat="server"></asp:TextBox>
    </li>    
    <li>
        <asp:Label ID="lblFirstname" runat="server" Text="Firstname: <span>*</span>" AssociatedControlID="txtFirstName"></asp:Label><asp:TextBox ID="txtFirstName" Runat="server"></asp:TextBox>
        <em><asp:RequiredFieldValidator Runat="server" ControlToValidate="txtFirstName" ValidationGroup="ChangeProfile" ErrorMessage="First name is required."
            ToolTip="First name is required." ID="FirstNameRequired" Display="None" Text="*">
        </asp:RequiredFieldValidator>
        <asp:CustomValidator ID="FirstNameRequiredFormat" runat="server" 
            ValidationGroup="CreateUserWizardControl" ControlToValidate="txtFirstName"
            ErrorMessage="First name is required and must be less than 40 characters long and contain apostrophes, spaces, or periods." 
            Display="None" OnServerValidate="FirstNameValidator_ServerValidate" ToolTip="A valid first name is required.">
        </asp:CustomValidator></em>
    </li>
    <li>                    
        <asp:Label ID="lblLastname" runat="server" Text="Lastname: <span>*</span>" AssociatedControlID="txtLastName"></asp:Label><asp:TextBox ID="txtLastName" Runat="server"></asp:TextBox>
        <em><asp:RequiredFieldValidator Runat="server" ControlToValidate="txtLastName" ValidationGroup="ChangeProfile" ErrorMessage="Last name is required."
                ToolTip="Last name is required." ID="LastNameRequired" Display="Dynamic">
        </asp:RequiredFieldValidator></em>
        
    </li>
    <li>
        <asp:Label ID="lblEmail" runat="server" Text="Email: <span>*</span>" AssociatedControlID="txtEmail"></asp:Label><asp:TextBox ID="txtEmail" Runat="server" Enabled="false"></asp:TextBox>        
    </li>                
    <li>
        <asp:Label ID="lblZipcode" runat="server" Text="Zipcode: <span>*</span>" AssociatedControlID="txtZipcode"></asp:Label> <asp:TextBox ID="txtZipcode" runat="server" Columns="6"></asp:TextBox> <asp:TextBox ID="txtZipcodeExtension" runat="server" Columns="2"></asp:TextBox> 
        <em><asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Zipcode was not in the correct format" Text="*" ControlToValidate="txtZipcode" Type="Integer" MinimumValue="1111" MaximumValue="9999"></asp:RangeValidator></em>
    </li>    
    <li>
        <asp:Label ID="lblPhoneNumber" runat="server" Text="Phone Number: <span>*</span>" AssociatedControlID="txtPhonenumber"></asp:Label> <asp:TextBox ID="txtPhonenumberPrefix" runat="server" Columns="2"></asp:TextBox> <asp:TextBox ID="txtPhonenumber" runat="server"></asp:TextBox> 
    </li>       
       </ol> 
     </fieldset>

     <fieldset>
     <ol>
        <li>
            <asp:Image ID="imgAvatar" runat="server" Visible="false" /><br />
            <asp:Label ID="lblAvatar" runat="server" Text="Avatar:" AssociatedControlID="uplAvatar"></asp:Label>  <asp:FileUpload ID="uplAvatar" runat="server" />
        </li>
        <li>
            <asp:Label ID="lblTwitter" runat="server" Text="Twitter account:" AssociatedControlID="txtTwitter"></asp:Label> <asp:TextBox ID="txtTwitter" runat="server"></asp:TextBox>
        </li>
        <li>
            <asp:Label ID="lblFacebook" runat="server" Text="Facebook account:" AssociatedControlID="txtFacebook"></asp:Label> <asp:TextBox ID="txtFacebook" runat="server"></asp:TextBox>
        </li>
        <li>
            <asp:Label ID="lblXboxLive" runat="server" Text="Xbox live account:" AssociatedControlID="txtXBox"></asp:Label> <asp:TextBox ID="txtXbox" runat="server"></asp:TextBox>
        </li>
        <li>
            <asp:Label ID="lblDelicious" runat="server" Text="Del.ico.us account:" AssociatedControlID="txtDelicious"></asp:Label> <asp:TextBox ID="txtDelicious" runat="server"></asp:TextBox>
        </li>     
        <li class="buttonBar">
            <asp:Button ID="SaveButton" Runat="server" Text="Save" OnClick="SaveButton_Click" />
            <asp:Button ID="CancelButton" Runat="server" Text="Cancel" OnClick="CancelButton_Click" CausesValidation="False" />
        </li>
        </ol>
     </fieldset>
     
</div>            
</asp:Content>



<asp:Content ID="Content1" ContentPlaceHolderID="RightContent" Runat="server">
<div class="section small help">
<h3>Help</h3>
<ul>
<li>
Change your password with the "change account settings" button
</li>
<li>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, 
sed diam nonummy nibh euismod tincidunt ut laoreet dolore 
magna aliquam erat volutpat.</li>

</ul>
</div>

</asp:Content>